All Questions
2,463 questions
0votes
1answer
41views
CoreData in framework crash when using Preview
I have a project with 3 targets: main application an extension framework (with coredata management for sharing with main app and extension) I set App Groups for main app and extension. When I trying ...
1vote
0answers
92views
UUID issues with Swift and Core Data
I'm having an error at runtime related to the UUID in my code. Let me explain whats attached. Below are the Persistence Controller, DeflectionLogEntity, DeflectionLogViewModel, and the main issue, ...
-2votes
1answer
89views
How do I fix 'unrecognized selector sent to instance' in swift?
I am working on an app using coreData and a log in. For that, I have a LoginView and LoginViewModel that I use to get the info to the ContentView. I keep getting this error message: "Terminating ...
2votes
1answer
456views
Xcode error on Github action: Could not determine generated file paths for Core Data code generation:
I don't know why the xcdatamodeld I added to my Xcode project is always missing when I try to build the project on CI or another machine and keep getting the error: Could not determine generated file ...
0votes
0answers
38views
Adding new items does not show even its added but seems the font is white or something but chaning fonts didn't solve it
enter image description hereAfter adding items doesn't show at simulator even the data added to DB, items should show in simulator with CoreData even it was showing perfectly before with standard ...
0votes
0answers
25views
CoreData in XCTest - cannot access .sqlite file
When implementing TDD with Core Data and fixing issues, seemingly out of nowhere the database file can't be accessed in the tests anymore. I get this error in the setUp method when saving the context: ...
0votes
0answers
33views
How do coredata and cloudkit communicate
I accidentally deleted some entities from Core Data on my macOS app. I had a backup of the sqlite file so I restored it. Now after some days the data disappeared again. My question is: if I restored ...
3votes
1answer
37views
Why does my app hang when breakpoints are disabled?
I have an app that uses several ManagedObjectContexts. I am using Objective-C. One MOC is created with NSPrivateQueueConcurrencyType. The rest are created with NSMainQueueConcurrencyType. I am using [...
0votes
0answers
55views
"Cannot find 'EntityName' in scope" in parent app with development pods
I am using core data in my child app. Used podspec file to link my child app with parent app as development pods. Child app is working file with core data. Here Child is an entity in core data. But ...
0votes
1answer
179views
Alternative way to create a in-memory persistent store with derived attribute for Xcode preview(iOS 17+)
I am working on a project to develop a iOS app and widget extension(iOS 17+ and Xcode 15), and using coreData to manage user data, I have a 'lastModify: Date' derived attribute for my user entity, ...
1vote
0answers
318views
Download Core Data SQLite Data File From iPhone
I am trying to browse data that has been saved to Core Data from my application that I am running. The iPhone is running iOS 17 and I have Xcode 15. Prior to this update, I used to be able to navigate ...
0votes
0answers
29views
How to find CoreData Object via multiple relationships
I have a number of CoreData objects that are have multiple relationships. I'll focus on one, Answer. The CoreData relationships look like this: It has no fields of its own, simply acts as a connector ...
0votes
0answers
70views
App Crashes on test flight after installing due to CoreData Migration
I have an older version of my app on testflight. I added 2 entities to coreData and I was not familiar with the migration requirements. Now my app crashes with the following error on the piece of code ...
2votes
0answers
193views
Warning for Versioned Core Data Model with Custom Value Transformer
In my app, I have a Core Data model that contains entities that have properties with transformed values that use a custom NSSecureUnarchiveFromDataTransformer I've defined. For example, from Apple's ...
7votes
1answer
949views
Core Data : No NSValueTransformer with class name XXX was found for attribute YYY on entity ZZZ for custom `NSSecureUnarchiveFromDataTransformer`
I already saw this post which is about the same warning but I already have that approach and it does not fix this issue now in iOS 17 and Xcode 15. My use case is very simple, I have this custom ...